package com.idlefish.flutterboost.action;

import androidx.annotation.NonNull;

import com.idlefish.flutterboost.FlutterBoost;
import com.idlefish.flutterboost.Messages;
import com.idlefish.flutterboost.intef.MethodCallAction;

import io.flutter.Log;
import io.flutter.plugin.common.MethodCall;
import io.flutter.plugin.common.MethodChannel;

public class MethodActionCloseFlutter implements MethodCallAction {

    @Override
    public void doAction(Messages.NativeRouterApi api, @NonNull MethodCall methodCall, @NonNull MethodChannel.Result result) {
        result.success("closeSuccess");
        api.closeFlutter();
    }
}
